CVE-2022-50311
cxl: Fix refcount leak in cxl_calc_capp_routing
Description
In the Linux kernel, the following vulnerability has been resolved: cxl: Fix refcount leak in cxl_calc_capp_routing of_get_next_parent() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. This function only calls of_node_put() in normal path, missing it in the error path. Add missing of_node_put() to avoid refcount leak.
INFO
Published Date :
Sept. 15, 2025, 3:15 p.m.
Last Modified :
Sept. 15, 2025, 3:22 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Update the Linux kernel to include the CXL module fix.
- Ensure reference counts are properly managed in the code.
- Apply the latest security patches for the kernel.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-50311
.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-50311
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-50311
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-50311
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-50311
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Sep. 15, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: cxl: Fix refcount leak in cxl_calc_capp_routing of_get_next_parent() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. This function only calls of_node_put() in normal path, missing it in the error path. Add missing of_node_put() to avoid refcount leak. Added Reference https://git.kernel.org/stable/c/1d09697ff22908ae487fc8c4fbde1811732be523 Added Reference https://git.kernel.org/stable/c/2d7b6580384e6d65419933ddc525bd176095da54 Added Reference https://git.kernel.org/stable/c/651e8bc9d0418c20a1989b7c078c64c2a6346fa3 Added Reference https://git.kernel.org/stable/c/6a310e8db5409676b4b3e6c1f54dff174e4fd04d Added Reference https://git.kernel.org/stable/c/81c8bbf5b2b5f0c8030fff1716c00849cda8571a Added Reference https://git.kernel.org/stable/c/c9bebc503881c1391f6c4f820134884adecf1519 Added Reference https://git.kernel.org/stable/c/ee870f72465015327ad96204b0e92450d04870cd Added Reference https://git.kernel.org/stable/c/f2d60f6ba173cded65081cee690b67802395a479